package py.edu.ucsa.sisalews.services.rest;

import java.util.List;

import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;

import py.edu.ucsa.sisalews.persistence.dto.ModuloDTO;

@Path("/modulo")
public interface ModuloREST {

	@Path("/")
	@Produces({"application/json"})
	@GET
	public List<ModuloDTO> listar();
	
	@Path("/")
	@POST
	public Response insertar(String modulo);
	
	@Path("/")
	@PUT
	public Response modificar(String modulo);
	
	@Path("/{id}")
	@DELETE
	public Response eliminar(@PathParam("id") Long id);
}
